import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
// 引入bootstrap的css和js
import 'bootstrap/dist/css/bootstrap.css';

// 引入路由
import { BrowserRouter } from 'react-router-dom';
// 导入App组件
import App from './component/app';
// 引入redux
import { Provider } from 'react-redux';
import store from './redux/store'

const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
  <Provider store={ store }>
    <BrowserRouter>
      <App />
    </BrowserRouter>
  </Provider>
  
);